package cn.cvs.service.impl;

import cn.cvs.dao.MenuMapper;
import cn.cvs.pojo.Menu;
import cn.cvs.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> menuOne() {
        return menuMapper.menuOne();
    }

    @Override
    public Menu menuTwo(Integer children) {
        return menuMapper.menuTow(children);
    }
}
